<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var arr = [15,69,97,23,46,78,1,13];
        var max = arr[0];
        var mix = arr[0];
        for(var i=1;i<arr.length;i++){
            if(max<arr[i]){
                max = arr[i];
            }
        }
        for(var i=1;i<arr.length;i++){
            if(mix>arr[i]){
                mix = arr[i];
            }
        }
        console.log(max);
        console.log(mix);
    </script>
</head>
<body>
    
</body>
</html>